import pytest
from ..Operation.Register_Operation import Register
from ..Data.Data import Data


class Test_login(Register):
    da = Data()

    # 执行成功的测试用例
    @pytest.mark.parametrize('name,pwd,repwd,expect', da.readExcel('注册'))
    def test_register_1(self, name,pwd,repwd,expect):
        driver = self.driver()
        result = self.GetSuccessResult(self.register(name, pwd,repwd, driver))
        self.assertResult(result, expect, driver)
